package com.ruoyi.report_tg.domain.vo;

import java.math.BigDecimal;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.annotation.ExcelDictFormat;
import com.ruoyi.common.convert.ExcelDictConvert;
import com.ruoyi.common.utils.BigDecimalUtil;
import com.ruoyi.sycs.domain.vo.BiQualificationVo;
import lombok.Data;
import java.util.Date;



/**
 * 土报告详细视图对象 report_tg_tgsybg_ba_detail
 *
 * @author zyb
 * @date 2024-05-24
 */
@Data
@ExcelIgnoreUnannotated
public class TgsybgBaDetailVo {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * excelId
     */
    @ExcelProperty(value = "excelId")
    private Long excelId;

    /**
     * 检测项目key
     */
    @ExcelProperty(value = "检测项目key")
    private Long qualId;

    /**
     * 技术指标符号symbol字典
     */
    @ExcelProperty(value = "技术指标符号symbol字典")
    private String symbolValue;

    /**
     * 技术指标数值1
     */
    @ExcelProperty(value = "技术指标数值1")
    private BigDecimal num1;

    /**
     * 技术指标数值2
     */
    @ExcelProperty(value = "技术指标数值2")
    private BigDecimal num2;

    /**
     * 技术指标
     */
    private String jiszb;

    /**
     * 检测结果
     */
    @ExcelProperty(value = "检测结果")
    private BigDecimal jiancjg;

    /**
     * 结果判定
     */
    @ExcelProperty(value = "结果判定")
    private String jiegpd;

    public void setNum1(BigDecimal num1) {
        this.num1 = BigDecimalUtil.stpTrailZero(num1);
    }

    public void setNum2(BigDecimal num2) {
        this.num2 = BigDecimalUtil.stpTrailZero(num2);
    }

    public void setJiancjg(BigDecimal jiancjg) {
        this.jiancjg = BigDecimalUtil.stpTrailZero(jiancjg);
    }

    /**
     * 技术指标名称
     */
    @ExcelProperty(value = "技术指标名称")
    private String qualName;

    /**
     * 单位
     */
    @ExcelProperty(value = "单位")
    private String qualUnit;

    public void setQualInfo(BiQualificationVo infoVo) {
        this.qualName = infoVo.getQualName();
        this.qualUnit = infoVo.getQualUnit();
    }
}
